package com.juntu.event_center

/**
 * Created by cj on 2019/6/2.
 * desc:
 */
class EventObjectPool(capacity: Int) : ObjectPool<Event>(capacity) {

    override fun createObjPool(capacity: Int): Array<Event?> {
        return Array(capacity) { Event() }
    }

    override fun createNewObj(): Event {
        return Event()
    }
}